import jsonschema
json_data = {
    "success": True,
    "code": 10000,
    "message": "操作成功",
    "money": 6.66,
    "address": None,
    "data": {
        "name": "tom",
        "age":18
    },
    "luckyNumber": [6, 8, 9]
}


schema ={
    "type":"object",
    "properties":{
        "success":{"const":True},
        "code": {"const":10000},
        "message":{"const":"操作成功"},
        "money":{"const":6.66},
        "address":{"const":None},
        "data":{"type":"object",
                "properties":{
                    "name":{"type":"string"},
                    "age":{"type":"integer"}
                },
                "required":["name"]},
        "LuckyNumber":{"type":"array"}
    },
    "required":["success","code","message"]
}
jsonschema.validate(instance=json_data,schema=schema)